package org.itboys.product.constant;
/**
 * 常量定义
 * @author weisky
 *
 */
public interface ProductConstant {
	
	public static final String PATH_SPLIT = "/";

	/**
	 * ossCdn 的二级域名前缀 (这种东西应该配在spring里 不应该写死在这里)
	 */
	public String OSS_URL_PREFIX = "http://allworldcenter.oss-cn-shanghai.aliyuncs.com/";

	/**
	 * 能量豆产品常量
	 */
	public class EnergyBeanProduct{
		public static final Long BEAN_SELLER_ID = 0L;
		public static final Long BEAN_PRODUCT_ID = 0L;
		public static final String BEAN_PRODUCT_NAME = "豆豆";
//		public static final Double BEAN_PRICE = 398d;//能量豆售价
		public static final String BEAN_PRICE = "bean_price";
		public static final String BEAN_SCALE = "bean_scale";
		public static final String BEAN_COUNT = "bean_count";//用户每日能量豆购买上限
	}

	/**
	 * 订单相关的常量
	 */
	public class OrderStatic{
		/*********订单状态**********/
		public static final Integer ORDER_STATUS_CREATE = 0; 					//等待买家付款
		public static final Integer ORDER_STATUS_PAY = 1;                   	//买家已付款
		public static final Integer ORDER_STATUS_SEND = 2;						//卖家已发货
		public static final Integer ORDER_STATUS_SUCCESS = 3;					//交易成功
		public static final Integer ORDER_STATUS_CLOSE = 4;				    //交易关闭
		public static final Integer ORDER_STATUS_BACK = 5;						//退款中的订单
		public static final Integer ORDER_STATUS_CANCLE = 6;					//交易取消
		public static final Integer ORDER_STATUS_DELETE = 7;					//已退款
		public static final Integer ORDER_STATUS_LOSE_EFFICACY=8;					//正在退货
		public static final Integer ORDER_STATUS_LOSE_SUCCESS=9;					//退货成功
		/*********支付方式**********/
		public static final Integer PAY_BANK = 0;  //银行卡
		public static final Integer PAY_WX = 1;  //微信支付
		public static final Integer PAY_ALI = 2;  //支付宝
		public static final Integer PAY_BEAN = 3;  //能量豆支付
		/*********支付回调**********/
		public static final String WXPAY_NOTIFY_URL = "/weixin/order/weixinNotify";
	}

	/*
	 * 分类
	 */
	class Category{
		public static int IMG_APP = 0;//app
		public static int IMG_WEIXIN = 1;//微信
		public static int IMG_LIST = 2;//列表
	}
	
	/*
	 * 分类下的规格特征
	 */
	class CategorySpec{
		public static int SHOWTYPE_TEXT = 1;//文字形式展现
		public static int SHOWTYPE_IMG = 2;//图片形式展现
	}
	
	/*
	 * 商品状态
	 */
	class ProductStatus{
		public static int PRODUCT_CHECKED = 1;//待平台审核
		public static int PRODUCT_PUT = 2;//上架
		public static int PRODUCT_DOWN = 3;//下架
		public static int PRODUCT_REMOVE = 4;//废弃
		public static int PRODUCT_DELETE = 5;//永久删除
		public static int PRODUCT_REJECT = 6;//审核拒绝
	}
	
	static class ImgPath{
		public static final String  OSS_PATH = "imgs";//OSS上传到的文件夹名称
	}
	
}
